function soloAlphaNumerico(e)
{
	 var keynum;
	 if(window.event) //IE
		 keynum = e.keyCode;
	 else if(e.which) //Netscape/Firefox/Opera
	 keynum = e.which;
	 var keychar = String.fromCharCode(keynum);
	 var validCharacters = /[a-zA-Z0-9]/;
	 return validCharacters.test(keychar);
}
/*valido que no ingresen algo que no sea numeros*/
function soloNumerico(e)
{
	 var keynum;
	 if(window.event) //IE
		 keynum = e.keyCode;
	 else if(e.which) //Netscape/Firefox/Opera
	 keynum = e.which;
	 var keychar = String.fromCharCode(keynum);
	 var validCharacters = /[0-9]/;
	 return validCharacters.test(keychar);
}

/*Setear el foco en el primer input habilitado */
function setFocus(id)
{
     document.getElementById("frm:"+id).focus();
}